@extends('layout.member.master')
@section('content')

    <div class="card">
        <div class="card-header mb-3">
            我的文章列表
        </div>
        <div class="row listAlias ">
            @foreach($articles as$article)
                <div class="col-12 col-md-6 col-xl-4">
                    <!-- Card -->
                    <div class="card">
                        <a href="project-overview.html">
                            <img src="../images/{{mt_rand(1,11)}}.jpg" alt="..." class="card-img-top">
                        </a>
                        <div class="card-body">
                            <div class="row align-items-center">
                                <div class="col">
                                    <h4 class="card-title mb-2 name">
                                        <a href="project-overview.html">{{$article->title}}</a>
                                    </h4>
                                    <p class="card-text small text-muted">
                                        {{$article->created_at->diffForHumans()}}
                                    </p>
                                </div>
                                <div class="col-auto">
                                    <div class="dropdown">
                                        <a href="#!" class="dropdown-ellipses dropdown-toggle" role="button"
                                           data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                            <i class="fe fe-more-vertical"></i>
                                        </a>
                                        <div class="dropdown-menu dropdown-menu-right">
                                            <a href="{{route('home.article.show',$article->id)}}" class="dropdown-item">
                                                查看
                                            </a>
                                            <a href="{{route('home.article.edit',$article->id)}}" class="dropdown-item">
                                                编辑
                                            </a>
                                            <a href="{{route('home.article.destroy',$article->id)}}"
                                               class="dropdown-item">
                                                删除
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div> <!-- / .row -->
                            <hr>
                            <div class="row align-items-center">

                                <div class="col-auto">
                                    <!-- Avatar group -->
                                    <div class="avatar-group">
                                        <a href="profile-posts.html" class="avatar avatar-xs" data-toggle="tooltip"
                                           title="" data-original-title="Ab Hadley">
                                            <img src="" alt="..."
                                                 class="avatar-img rounded-circle border border-white">
                                        </a>
                                    </div>
                                </div>
                            </div> <!-- / .row -->
                        </div> <!-- / .card-body -->
                    </div>
                </div>
            @endforeach
        </div>
        <div class="card-footer text-muted">
            {{$articles->links()}}
        </div>
    </div>




@endsection



